<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            height: 200px;
            width: 800px;
            border: 1px solid red;
            font-size: 100px;
            font-weight: bolder;
            line-height: 200px;
            text-align: center;
            color: rgba(0, 0, 0, 0.2);

            background-image: url(./assets/1.png);
            background-position: center;
            background-size: cover;

            -webkit-background-clip: text;
            background-clip: text;
        }
    </style>
</head>
<body>
    <div class="box">
        我是一段文字
    </div>
</body>
</html>